@extends('layouts.base')
@section('title', '出货管理')
@section('content')

		<!-- ============================================================== -->
<!-- Container fluid  -->
<!-- ============================================================== -->
<div class="container-fluid">
	<!-- ============================================================== -->
	<!-- Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->
	<div class="row page-titles">
		<div class="col-md-5 align-self-center">
			<h3 class="text-themecolor">出货--列表</h3>
		</div>
		<div class="col-md-7 align-self-center">
			<ol class="breadcrumb">
				<li class="breadcrumb-item"><a href="javascript:void(0)">首页</a></li>
				<li class="breadcrumb-item">出货管理</li>
				<li class="breadcrumb-item active">出货列表</li>
			</ol>
		</div>
	</div>
	<!-- ============================================================== -->
	<!-- End Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->

	<!-- ============================================================== -->
	<!-- Start Page Content -->
	<!-- ============================================================== -->
	<div class="row">
		<div class="col-12">
			<div class="card">
				<div class="card-body">
					<h4 class="card-title">出货列表</h4>
					<h6 class="card-subtitle"></h6>
					<div class="card-body">
						<form method="get" action="{{ route('admin.shipment.index') }}">
							<div class="form-row">
								<div class="col-md-3 mb-3">
									<label for="validationDefault04">归属</label>
									<input type="text" name="operationame" class="form-control" id="validationDefault04" placeholder="归属" value="{{ $operationame }}" >
								</div>
								<div class="col-md-3 mb-3">
									<label for="validationDefault05">设备名称</label>
									<input type="text" name="machines_name" class="form-control" id="validationDefault05" placeholder="设备名称" value="{{ $machines_name }}" >
								</div>
								<div class="col-md-3 mb-3">
									<label for="validationDefault05">设备编号</label>
									<input type="text" name="machines_imel" class="form-control" id="validationDefault05" placeholder="设备编号" value="{{ $machines_imel }}" >
								</div>
								<div class="col-md-3 mb-3">
									<label for="validationDefault05">货道编号</label>
									<input type="text" name="aisle_number" class="form-control" id="validationDefault05" placeholder="货道编号" value="{{ $aisle_number }}" >
								</div>

							</div>
							<button class="btn btn-primary" type="submit">筛选</button>
							<a href="{{ route('admin.shipment.index') }}" class="btn btn-info">重置</a>
						</form>
					</div>
					<div class="table-responsive">
						<table id="demo-foo-addrow" class="table table-bordered m-t-30 table-hover contact-list" data-paging="true" data-paging-size="7">
							<thead>
							<tr>
								<th>ID</th>
								<th>归属</th>
								<th>设备名称</th>
								<th>设备编号</th>
								<th>货道编号</th>
								<th>订单编号</th>
								<th>出货状态</th>
								<th>出货信息</th>
								<th>出货时间</th>
							</tr>
							</thead>
							<tbody>
							@foreach($shi_pment as $value)
								<tr>
									<td>{{ $value->id }}</td>
									<td>{{ $value->operationame }}</td>
									<td>{{ $value->machines_name }}</td>
									<td>{{ $value->machines_imel }}</td>
									<td>{{ $value->aisle_number }}</td>
									<td>{{ $value->order_number }}</td>
									<td>{{ $value->shipment_status }}</td>
									<td>{{ $value->shipment_info }}</td>
									<td>{{ $value->created_at }}</td>
								</tr>
							@endforeach
							</tbody>
						</table>
						{{ $shi_pment->appends(['operationame' => $operationame])->links() }}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

@stop

